#include"mystdio.h"



void testStdio()
{
    //cout<<2<<endl;
    char filename[]="testfile.txt";
    _FILE* fp=_fopen(filename,"a");
    if(fp==nullptr) 
        return;
    int cut=5;
    while(cut--)
    {
        //char tmp[]="(cut+'0') hello stdio\n";
        string tmp="("+to_string(cut)+") hello stdio\n";
        _fwrite(fp,tmp.c_str(),sizeof(tmp));
    }
    //_fflush(fp);//因为没有刷新所以不会把内容输入到文件
    _fclose(fp);
    
}

void testStdio1()
{
    char filename[]="testfile.txt";
    auto fp=_fopen(filename,"r");
    _fclose(fp);
    
}

int main()
{   //cout<<1<<endl;
    testStdio1();
    return 0;
}